﻿@using BaBaoFan.Modifier.Model
@model PoolCoinCreateModel
@{
    ViewData["Title"] = "AddPoolCoin";
}

<div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 15px;">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>添加可挖币种</legend>
        </fieldset>
        <form class="layui-form" action="AddPoolCoin" method="post">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">选择矿池</label>
                    <div class="layui-input-inline">
                        @Html.DropDownList("PoolId", Model.AvaliablePools, new { @class = "form-control" })
                        <span asp-validation-for="PoolId" class="text-danger"></span>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">选择币种</label>
                        <div class="layui-input-inline">
                            @Html.DropDownList("CoinId", Model.AvaliableCoins, new { @class = "form-control" })
                            <span asp-validation-for="CoinId" class="text-danger"></span>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">最小支付</label>
                        <div class="layui-input-inline">
                            <input asp-for="MinPay" class="layui-input"  lay-verify="number" />
                            <span asp-validation-for="MinPay" class="text-danger"></span>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">是否正常挖矿</label>
                        <div class="layui-input-inline">
                            @Html.DropDownList("CoinState", Html.GetEnumSelectList<CoinStateType>(), new { @class = "form-control" })
                            <span asp-validation-for="CoinState" class="text-danger"></span>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">合并挖矿</label>
                        <div class="layui-input-inline">
                            <input asp-for="MergedMining" class="layui-input" />
                            <span asp-validation-for="MergedMining" class="text-danger"></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" type="submit">立即提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
    layui.use('form', function () {
        var form = layui.form();
    });
</script>

